package com.jintian.smart.kernel.switching.entity;

import com.jintian.smart.kernel.orm.entity.annotation.JSONMapper;
import lombok.Data;
import org.beetl.sql.annotation.entity.AssignID;
import org.beetl.sql.annotation.entity.Column;
import org.beetl.sql.annotation.entity.Table;

import java.sql.Timestamp;
import java.util.Map;

@Data
@Table(name = "mda_TableDMLLog", comment = "DML日志表")
public class TableDMLLog {
    @AssignID("snowid")
    private String guid;
    @Column(name = "tableName")
    private String tableName;
    private String operation;
    @Column(name = "keyValues")
    private String keyValues;
    @Column(name = "occurTime")
    private Timestamp occurTime;
    @JSONMapper
    private Map<String, Object> attrs;
}
